package com.tj.collection.integration;


import com.tj.collection.integration.dto.LoanNoteDto;

import java.util.Date;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/9/28
 * Time: 上午9:33
 */
public interface MessageIntegrationService {

    /**
     * @param loanNoteDto
     * @return
     */
    boolean loanNote(LoanNoteDto loanNoteDto);

    /**
     * 发邮件
     *
     * @param userCode
     * @param content
     * @param title
     * @return
     */
    boolean loanNoteByEmail(String userCode, String content, String title);

    /**
     * 发邮件
     *
     * @param userCode
     * @param tradeNo  优先根据订单号匹配包名
     * @param content
     * @param title
     * @return
     */
    boolean loanNoteByEmail(String userCode, String tradeNo, String content, String title);

    /**
     * 发客服邮件
     *
     * @param userCode
     * @param content
     * @param title
     * @param email
     * @return
     */
    boolean sendCustomerServiceEmail(String userCode, String content, String title, String email);

    /**
     * 逾期30天通知
     *
     * @param email
     * @param content
     * @param title
     * @param userCode
     * @return
     */
    boolean loanNote30ByEmail(String email, String content, String title, String userCode);

//    /**
//     * 发送短信
//     *
//     * @param
//     * @return
//     */
//    Result<Boolean> send(SingleSmsSendRequestRO singleSmsSendRequestRO);
//
//    /**
//     * 单个推送
//     *
//     * @param singlePushSendRequestRO
//     * @return
//     */
//
//    Result<Boolean> singlePush(SinglePushSendRequestRO singlePushSendRequestRO);
//
//    /**
//     * 批量推送
//     *
//     * @param batchPushSendRequestRO
//     * @return
//     */
//    Result<Boolean> batchPush(BatchPushSendRequestRO batchPushSendRequestRO);

    /**
     * 发送还款提醒
     *
     * @param userCode
     * @param tradeNo
     * @param mobile
     * @param name
     * @param repaymentDate
     * @param borrowCapital
     * @return
     */
    boolean sendBillNote(String userCode, String tradeNo, String mobile, String name, Date repaymentDate, String borrowCapital);

    /**
     * 发送短信
     *
     * @param mobile
     * @param paramMap
     */
//    Result<Boolean> sendMsg(String userCode, String mobile, String bizCode, Map<String, String> paramMap);
}
